﻿///////////////////////////////////////////////////////////////////
//               libQGLGraphicsViewer configuration file                 //
//  Modify these settings according to your local configuration  //
///////////////////////////////////////////////////////////////////

#ifndef QGLGraphicsViewer_CONFIG_H
#define QGLGraphicsViewer_CONFIG_H

#define QGLGraphicsViewer_VERSION 0x020604

// Needed for Qt < 4 (?)
#ifndef QT_CLEAN_NAMESPACE
# define QT_CLEAN_NAMESPACE
#endif

// Get QT_VERSION and other Qt flags
#include <qglobal.h>

#if QT_VERSION < 0x040000
Error : libQGLGraphicsViewer requires a minimum Qt version of 4.0
#endif

// Win 32 DLL export macros
#ifdef Q_OS_WIN32
# ifndef M_PI
#  define M_PI 3.14159265358979323846
# endif
//# ifndef QGLGraphicsViewer_STATIC
//#   ifdef CREATE_QGLGraphicsViewer_DLL
//#     if QT_VERSION >= 0x040500
//#       define QGLGraphicsViewer_EXPORT Q_DECL_EXPORT
//#     else
//#       define QGLGraphicsViewer_EXPORT  __declspec(dllexport)
//#     endif
//#   else
//#     if QT_VERSION >= 0x040500
//#       define QGLGraphicsViewer_EXPORT Q_DECL_IMPORT
//#     else
//#       define QGLGraphicsViewer_EXPORT  __declspec(dllimport)
//#     endif
//#  endif
//# endif
//# ifndef __MINGW32__
//#  pragma warning( disable : 4251 ) // DLL interface, needed with Visual 6
//#  pragma warning( disable : 4786 ) // identifier truncated to 255 in browser information (Visual 6).
//# endif
#endif // Q_OS_WIN32

// For other architectures, this macro is empty
#ifndef QGLGraphicsViewer_EXPORT
# define QGLGraphicsViewer_EXPORT
#endif

// OpenGL includes - Included here and hence shared by all the files that need OpenGL headers.
# include <QGLWidget>

// GLU was removed from Qt in version 4.8
#ifdef Q_OS_MAC
# include <OpenGL/glu.h>
#else
# include <GL/glu.h>
#endif

// Container classes interfaces changed a lot in Qt.
// Compatibility patches are all grouped here.
#include <QList>
#include <QVector>

// For deprecated methods
// #define __WHERE__ "In file "<<__FILE__<<", line "<<__LINE__<<": "
// #define orientationAxisAngle(x,y,z,a) { std::cout << __WHERE__ << "getOrientationAxisAngle()." << std::endl; exit(0); }

// Patch for gcc version <= 2.95. Seems to no longer be needed with recent Qt versions.
// Uncomment these lines if you have error message dealing with operator << on QStrings
// #if defined(__GNUC__) && defined(__GNUC_MINOR__) && (__GNUC__ < 3) && (__GNUC_MINOR__ < 96)
// # include <iostream>
// # include <qstring.h>
// std::ostream& operator<<(std::ostream& out, const QString& str)
// { out << str.latin1();  return out; }
// #endif

#endif // QGLGraphicsViewer_CONFIG_H
